<!-- 新动态列弹窗 -->
<nz-modal [(nzVisible)]="searchData[tableId]" *ngIf="searchData[tableId]" [nzTitle]="popupTitle" [nzMask]="true"
  [nzMaskStyle]="{backgroundColor:'rgba(0,0,0,.22)'}" [nzWidth]="720" [nzFooter]="null" (nzOnCancel)="popupHide()">
  <div class="layui-tab-content">
    <!-- 组织 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'UNIT_OPTION'">
      <div style="height:140px;">
        <div class="twoitem">
          <p><span>组织代码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['unitCode']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>组织名称：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['unitName']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>助记码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['inputCode']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>组织状态：</span></p>
          <app-cp-select [module]="this" data="searchData" name="unitStatus" listName="data1_sel" 
            type="search"></app-cp-select>
        </div>
        <div class="putitems2" style="padding-left: 220px;">
          <button nz-button nzType="primary" (click)="tableList()">查询</button>
          <button nz-button nzType="default" (click)="popupHide()">取消</button>
        </div>
      </div>
    </div>

    <!-- 人员 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'PRSNL_OPTION'">
      <div style="height:140px;">
        <div class="twoitem">
          <p><span>人员代码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['prsnlCode']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>全名：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['prsnlName']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>移动电话：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['mobileNum']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>人员状态：</span></p>
          <app-cp-select [module]="this" data="searchData" name="prsnlStatus" listName="data1_sel" title="人员状态"
            type="search"></app-cp-select>
        </div>

        <div class="putitems3">
          <button nz-button nzType="primary" (click)="tableList()">查询</button>
          <button nz-button nzType="default" (click)="popupHide()">取消</button>
        </div>
      </div>
    </div>

    <!-- 自定义报表 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'SYS_CRP'">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="自定义报表id" [(ngModel)]="searchData['crpId']"
          (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="自定义报表名称" [(ngModel)]="searchData['crpName']"
          (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>

    <!-- 商品品种-->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'PROD_CLS_OPTION'">
      <div style="height:180px;">
        <div class="twoitem">
          <p><span>品种代码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['prodClsCode']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>商品名称：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['prodName']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>商品分类：</span></p>
            <app-cp-select-tree [module]="this" data="searchData" name="prodCatId" title="商品分类" treeType="cat" isAsyn="T" leaves="true" type="search"></app-cp-select-tree>
        </div>
        <div class="twoitem">
          <p><span>助记码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['inputCode']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>品牌名称：</span></p>
          <!-- <nz-tree-select style="width: 200px;float: left;" [nzNodes]="brandId"
            [nzDropdownStyle]="{'max-height':'300px'}" nzShowSearch [(ngModel)]="searchData['brandId']" ></nz-tree-select> -->
          <app-cp-select [module]="this" data="searchData" name="brandId" listName="data1_sel" title="品牌名称"
            type="search"></app-cp-select>
        </div>
        <div class="twoitem">
          <p><span>商品状态：</span></p>
          <app-cp-select [module]="this" data="searchData" name="prodStatus" listName="data1_sel" title="商品状态"
            type="search"></app-cp-select>
        </div>
        <div class="putitems3">
          <button nz-button nzType="primary" (click)="tableList()">查询</button>
          <button nz-button nzType="default" (click)="popupHide()">取消</button>
        </div>
      </div>
    </div>
    <!-- 商品 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'DTL_PROD'">
      <div style="height:180px;">
        <div class="twoitem">
          <p><span>商品代码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['prodCode']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>商品名称：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['prodName']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>商品分类：</span></p>
            <app-cp-select-tree [module]="this" data="searchData" name="prodCatId" title="商品分类" treeType="cat" isAsyn="T" leaves="true" type="search"></app-cp-select-tree>
        </div>
        <div class="twoitem">
          <p><span>助记码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['inputCode']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>品牌名称：</span></p>
          <!-- <nz-tree-select style="width: 200px;float: left;" [nzNodes]="brandId"
            [nzDropdownStyle]="{'max-height':'300px'}" nzShowSearch [(ngModel)]="searchData['brandId']" ></nz-tree-select> -->
          <app-cp-select [module]="this" data="searchData" name="brandId" listName="data1_sel" title="品牌名称"
            type="search"></app-cp-select>
        </div>
        <div class="twoitem">
          <p><span>商品状态：</span></p>
          <app-cp-select [module]="this" data="searchData" name="prodStatus" listName="data1_sel" title="商品状态"
            type="search"></app-cp-select>
        </div>
        <div class="putitems3">
          <button nz-button nzType="primary" (click)="tableList()">查询</button>
          <button nz-button nzType="default" (click)="popupHide()">取消</button>
        </div>
      </div>
    </div>
    <!-- 品牌 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'BRAND'">
      <div style="height:100px;">
        <div class="twoitem">
          <p><span>品牌Id：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['brandId']"
            (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>品牌名称：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['brandName']"
            (keydown.enter)="tableList()">
        </div>
        <div class="putitems3">
          <button nz-button nzType="primary" (click)="tableList()" style="margin-right:30px;">查询</button>
          <button nz-button nzType="default" (click)="popupHide()">取消</button>
        </div>
      </div>
    </div>
    <!-- 采购合同号 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'PUC'">
      <div class="layui-tab-item layui-show layui-col-space5">
        <div class="layui-inline layui-show-xs-block">
          <input nz-input nzSize="default" autocomplete="off" placeholder="采购合同号" [(ngModel)]="searchData['pucNum']"
            style="width: 120px;" (keydown.enter)="tableList()">
        </div>
        <div class="layui-inline layui-show-xs-block">
          <app-cp-date [module]="this" data="searchData" name="startTime" title="单据日期>=" type="search"
            css="width: 120px;"></app-cp-date>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <app-cp-date [module]="this" data="searchData" name="endTime" title="单据日期<=" type="search"
            css="width: 120px;"></app-cp-date>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <input nz-input nzSize="default" autocomplete="off" placeholder="供应商代码" [(ngModel)]="searchData['venderNum']"
            style="width: 120px;margin-right: -26px">
          <button class="ss_but2 searchicon" nz-button nzType="default"
            (click)="popupTable(1,'VD','UNIT_OPTION','供应商代码')" type="button" data-method="setTop" style="width:28px;">
            <i class="layui-icon layui-icon-search"></i></button>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <input nz-input nzSize="default" autocomplete="off" placeholder="供应商仓库代码"
            [(ngModel)]="searchData['vdrWarehNum']" style="width: 150px;margin-right: -26px">
          <button class="ss_but2 searchicon" nz-button nzType="default"
            (click)="popupTable(2,'WH','UNIT_OPTION','供应商仓库代码')" type="button" data-method="setTop" style="width:28px;">
            <i class="layui-icon layui-icon-search"></i></button>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <input nz-input nzSize="default" autocomplete="off" placeholder="采购商仓库代码"
            [(ngModel)]="searchData['vdeWarehNum']" style="width: 150px;margin-right: -26px">
          <button class="ss_but2 searchicon" nz-button nzType="default"
            (click)="popupTable(3,'WH','UNIT_OPTION','采购商仓库代码')" type="button" data-method="setTop"
            style="width:28px;"><i class="layui-icon layui-icon-search"></i></button>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <app-cp-select [module]="this" data="searchData" name="progress" listName="data1_sel" title="进度"
            css="float:left;width: 150px;" type="search"></app-cp-select>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
              class="layui-icon">&#xe615;</i></button>
        </div>
      </div>
    </div>

    <!-- 退销合同号 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'SRC'">
      <div class="layui-tab-item layui-show layui-col-space5">
        <div class="layui-inline layui-show-xs-block">
          <input nz-input nzSize="default" autocomplete="off" placeholder="退销合同号" [(ngModel)]="searchData['srcNum']"
            style="width: 120px;" (keydown.enter)="tableList()">
        </div>
        <div class="layui-inline layui-show-xs-block">
          <app-cp-date [module]="this" data="searchData" name="startTime" title="单据日期>=" type="search"
            css="width: 120px;"></app-cp-date>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <app-cp-date [module]="this" data="searchData" name="endTime" title="单据日期<=" type="search"
            css="width: 120px;"></app-cp-date>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <input nz-input nzSize="default" autocomplete="off" placeholder="采购商代码" [(ngModel)]="searchData['vendeeNum']"
            style="width: 120px;margin-right: -26px">
          <button class="ss_but2 searchicon" nz-button nzType="default"
            (click)="popupTable(4,'VE','UNIT_OPTION','采购商代码')" type="button" data-method="setTop" style="width:28px;"><i
              class="layui-icon layui-icon-search"></i></button>
        </div>
        <div style="clear: both;"></div>
        <div class="layui-inline layui-show-xs-block">
          <input nz-input nzSize="default" autocomplete="off" placeholder="供应商仓库代码"
            [(ngModel)]="searchData['vdrWarehNum']" style="width: 150px;margin-right: -26px">
          <button class="ss_but2 searchicon" nz-button nzType="default"
            (click)="popupTable(5,'WH','UNIT_OPTION','供应商仓库代码')" type="button" data-method="setTop"
            style="width:28px;"><i class="layui-icon layui-icon-search"></i></button>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <input nz-input nzSize="default" autocomplete="off" placeholder="采购商仓库代码"
            [(ngModel)]="searchData['vdeWarehNum']" style="width: 150px;margin-right: -26px">
          <button class="ss_but2 searchicon" nz-button nzType="default"
            (click)="popupTable(6,'WH','UNIT_OPTION','采购商仓库代码')" type="button" data-method="setTop"
            style="width:28px;"><i class="layui-icon layui-icon-search"></i></button>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <app-cp-select [module]="this" data="searchData" name="progress" listName="data1_sel" title="进度"
            css="float:left;width: 150px;" type="search"></app-cp-select>
        </div>
        <div class="layui-inline layui-show-xs-block">
          <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
              class="layui-icon">&#xe615;</i></button>
        </div>
      </div>
    </div>

    <!-- 盘点清单（盘点表编号） -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'STT'">
      <div style="height:100px;">
        <div class="layui-tab-item layui-show layui-col-space5">
          <div class="layui-inline layui-show-xs-block">
            <input nz-input nzSize="default" autocomplete="off" placeholder="盘点表编号" [(ngModel)]="searchData['sttNum']"
              style="width: 150px;" (keydown.enter)="tableList()">
          </div>
          <div class="layui-inline layui-show-xs-block">
            <app-cp-date [module]="this" data="searchData" name="minDocDate" title="单据日期>=" type="search"
              css="width: 150px;"></app-cp-date>
          </div>
          <div class="layui-inline layui-show-xs-block">
            <app-cp-date [module]="this" data="searchData" name="maxDocDate" title="单据日期<=" type="search"
              css="width: 150px;"></app-cp-date>
          </div>
          <div style="clear: both;"></div>
          <div class="layui-inline layui-show-xs-block">
            <input nz-input nzSize="default" autocomplete="off" placeholder="仓库代码" [(ngModel)]="searchData['warehCode']"
              style="width: 120px;margin-right: -26px;" (keydown.enter)="tableList()">
            <button nz-button nzType="default" class="ss_but2 searchicon"
              (click)="popupTable(7,'WH','UNIT_OPTION','仓库代码')"><i class="layui-icon layui-icon-search"></i></button>
          </div>
          <div class="layui-inline layui-show-xs-block">
            <app-cp-select [module]="this" data="searchData" name="progress" listName="data1_sel" title="进度"
              css="float:left;width: 120px;" type="search"></app-cp-select>
          </div>
          <div class="layui-inline layui-show-xs-block">
            <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
                class="layui-icon">&#xe615;</i></button>
          </div>
        </div>
      </div>
    </div>
    <!-- 角色弹窗 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'SYS_ROLE'">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="角色id" [(ngModel)]="searchData['roleId']"
          style="width: 120px;" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="角色描述" [(ngModel)]="searchData['description']"
          style="width: 120px;" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 关联采购合同 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'PPR_BY_PUC'">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="采购合同编号" [(ngModel)]="searchData['pucNum']"
          style="width: 120px;" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="startTime" title="单据日期>=" type="search"
          css="width: 120px;"></app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="endTime" title="单据日期<=" type="search" css="width: 120px;">
        </app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="供应商仓库代码"
          [(ngModel)]="searchData['vdrWarehCode']" style="width: 150px;margin-right: -26px;"
          (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="ss_but2 searchicon" nz-button nzType="default"
          (click)="popupTable(8,'WH','UNIT_OPTION','供应商仓库代码')" type="button" data-method="setTop" style="width:28px;"><i
            class="layui-icon layui-icon-search"></i></button>
      </div>
      <div style="clear: both;"></div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="采购商仓库代码"
          [(ngModel)]="searchData['vdeWarehCode']" style="width: 150px;margin-right: -26px;"
          (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="ss_but2 searchicon" nz-button nzType="default"
          (click)="popupTable(9,'WH','UNIT_OPTION','采购商仓库代码')" type="button" data-method="setTop" style="width:28px;"><i
            class="layui-icon layui-icon-search"></i></button>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>

    <!-- 关联入库单 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'PPR_GRN'">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="入库单编号" [(ngModel)]="searchData['grnNum']"
          style="width: 120px;" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="startTime" title="单据日期>=" type="search"
          css="width: 120px;"></app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="endTime" title="单据日期<=" type="search" css="width: 120px;">
        </app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>

    <!-- 预付款单号 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'PMN'">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="预付款单编号" [(ngModel)]="searchData['pmnNum']"
          style="width: 120px;" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="startTime" title="单据日期>=" type="search"
          css="width: 120px;"></app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="endTime" title="单据日期<=" type="search" css="width: 120px;">
        </app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 采购付款申请单 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'PPR'">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="采购付款单编号" [(ngModel)]="searchData['pprNum']"
          style="width: 120px;" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="供应商代码" [(ngModel)]="searchData['venderCode']"
          style="width: 120px;margin-right: -26px;" (keydown.enter)="tableList()">
        <button class="ss_but2 searchicon" nz-button nzType="default"
          (click)="popupTable(10,'VD','UNIT_OPTION','供应商代码')" type="button" data-method="setTop" style="width:28px;"><i
            class="layui-icon layui-icon-search"></i></button>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="startTime" title="单据日期>=" type="search"
          css="width: 120px;"></app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="endTime" title="单据日期<=" type="search" css="width: 120px;">
        </app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 授权领域 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'DOMAIN_ACCREDIT_OPTION'">
      <div style="height:40px;">
        <div class="layui-tab-item layui-show layui-col-space5" style="text-align:center;">
          <div class="layui-inline layui-show-xs-block">
            <input nz-input nzSize="default" autocomplete="off" placeholder="领域Id" [(ngModel)]="searchData['domainId']"
              name="start" id="start" (keydown.enter)="tableList()">
          </div>
          <div class="layui-inline layui-show-xs-block">
            <input nz-input nzSize="default" autocomplete="off" placeholder="领域名称" [(ngModel)]="searchData['unitName']"
              name="end" id="end" (keydown.enter)="tableList()">
          </div>
          <div class="layui-inline layui-show-xs-block">
            <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="table2()"><i
                class="layui-icon">&#xe615;</i></button>
          </div>
        </div>
      </div>
    </div>
    <!-- 用户领域编辑 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === '暂时不用'">
      <div style="height:100px;">
        <div class="putitem">
          <p><span>领域代码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['unitName']"
            style="width: 180px;" (keydown.enter)="tableList()">
          <div class="div_k2"></div>
          <p><span>领域名称：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['unitCode']"
            style="width: 180px;" (keydown.enter)="tableList()">
        </div>
        <div class="putitems3">
          <button nz-button nzType="primary" (click)="tableList()">查询</button>
          <button nz-button nzType="default" (click)="popupHide()">取消</button>
        </div>
      </div>
    </div>
    <!-- 销售合同号 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'SLC'">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="销售合同号" [(ngModel)]="searchData['slcNum']"
          style="width: 120px;" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="startTime" title="单据日期>=" type="search"
          css="width: 120px;"></app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="endTime" title="单据日期<=" type="search" css="width: 120px;">
        </app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="采购商代码" [(ngModel)]="searchData['vendeeCode']"
          style="width: 120px;margin-right: -26px;" >
        <button class="ss_but2 searchicon" nz-button nzType="default"
          (click)="popupTable(11,'VE','UNIT_OPTION','采购商代码')" type="button" data-method="setTop" style="width:28px;"><i
            class="layui-icon layui-icon-search"></i></button>
      </div>
      <div style="clear: both;"></div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="采购商仓库代码"
          [(ngModel)]="searchData['vdeWarehCode']" style="width: 150px;margin-right: -26px;">
        <button class="ss_but2 searchicon" nz-button nzType="default"
          (click)="popupTable(12,'WH','UNIT_OPTION','采购商仓库代码')" type="button" data-method="setTop"
          style="width:28px;"><i class="layui-icon layui-icon-search"></i></button>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="供应商仓库代码"
          [(ngModel)]="searchData['vdrWarehCode']" style="width: 150px;margin-right: -26px;">
        <button class="ss_but2 searchicon" nz-button nzType="default"
          (click)="popupTable(13,'WH','UNIT_OPTION','供应商仓库代码')" type="button" data-method="setTop"
          style="width:28px;"><i class="layui-icon layui-icon-search"></i></button>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-select [module]="this" data="searchData" name="progress" listName="data1_sel" title="进度"
          css="float:left;width: 150px;" type="search"></app-cp-select>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>

    <!-- 套装代码 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'PROD_CLS'">
      <div style="height:100px;">
        <div class="putitem">
          <p><span>品种代码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['prodClsCode']"
            style="width: 115px;" (keydown.enter)="tableList()">
          <p><span>商品名称：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['prodName']"
            style="width: 115px;" (keydown.enter)="tableList()">
          <p><span>助记码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['inputCode']"
            style="width: 115px;" (keydown.enter)="tableList()">
        </div>
        <div class="putitems3">
          <button nz-button nzType="primary" (click)="tableList()">查询</button>
          <button nz-button nzType="default" (click)="popupHide()">取消</button>
        </div>
      </div>
    </div>

    <!-- 退购合同号 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'PRC'">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="退购合同号" [(ngModel)]="searchData['prcNum']"
          style="width: 120px;" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="startTime" title="单据日期>=" type="search"
          css="width: 120px;"></app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-date [module]="this" data="searchData" name="endTime" title="单据日期<=" type="search" css="width: 120px;">
        </app-cp-date>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="供应商代码" [(ngModel)]="searchData['venderNum']"
          style="width: 120px;margin-right: -26px;">
        <button class="ss_but2 searchicon" nz-button nzType="default"
          (click)="popupTable(14,'VD','UNIT_OPTION','供应商代码')" type="button" data-method="setTop" style="width:28px;"><i
            class="layui-icon layui-icon-search"></i></button>
      </div>
      <div style="clear: both;"></div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="供应商仓库代码"
          [(ngModel)]="searchData['vdrWarehNum']" style="width: 120px;margin-right: -26px;">
        <button class="ss_but2 searchicon" nz-button nzType="default"
          (click)="popupTable(15,'WH','UNIT_OPTION','供应商仓库代码')" type="button" data-method="setTop"
          style="width:28px;"><i class="layui-icon layui-icon-search"></i></button>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="采购商仓库代码"
          [(ngModel)]="searchData['vdeWarehNum']" style="width: 120px;margin-right: -26px;">
        <button class="ss_but2 searchicon" nz-button nzType="default"
          (click)="popupTable(16,'WH','UNIT_OPTION','采购商仓库代码')" type="button" data-method="setTop"
          style="width:28px;"><i class="layui-icon layui-icon-search"></i></button>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-select [module]="this" data="searchData" name="progress" listName="data1_sel" title="进度"
          css="float:left;width: 120px;" type="search"></app-cp-select>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 组织筛选 -->
    <div class="layui-tab-item layui-show layui-col-space5" style="text-align:center;"
      *ngIf="data1_parmKey === '还未有动态列'">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="组织代码" [(ngModel)]="searchData['unitCode']" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="组织名称" [(ngModel)]="searchData['unitName']" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 切换领域 -->
    <div class="layui-tab-item layui-show layui-col-space5" style="text-align:center;"
      *ngIf="data1_parmKey === 'SYS_CUT_DOMAIN'">
      <div style="height:100px;">
        <div class="putitem">
          <p><span>领域代码：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['unitName']"
            style="width: 180px;" (keydown.enter)="tableList()">
          <div class="div_k2"></div>
          <p><span>领域名称：</span></p> <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['domainId']"
            style="width: 180px;" (keydown.enter)="tableList()">
        </div>
        <div class="putitems3">
          <button nz-button nzType="primary" (click)="tableList()">查询</button>
          <button nz-button nzType="default" (click)="popupHide()">取消</button>
        </div>
      </div>
    </div>
    <!-- 权限 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'SYS_PRIVILEGE'">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="权限Id" [(ngModel)]="searchData['privId']"
          style="width: 120px;" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="描述" [(ngModel)]="searchData['description']"
          style="width: 120px;" (keydown.enter)="tableList()">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <app-cp-select [module]="this" data="searchData" name="privType" listName="data1_sel" title="权限类别"
          css="float:left;width: 140px;" type="search"></app-cp-select>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>

    <!-- 设置密码----领域Id -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'UNIT_DOMAIN'">
      <div style="height:140px;">
        <div class="twoitem">
          <p><span>组织代码：</span></p>
          <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['unitCode']" (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>组织名称：</span></p>
          <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['unitName']" (keydown.enter)="tableList()">
        </div>
        <div class="twoitem">
          <p><span>领域ID：</span></p>
          <input nz-input nzSize="default" autocomplete="off" [(ngModel)]="searchData['domainId']" (keydown.enter)="tableList()">
        </div>
        <div class="putitems" style="margin-left: 80px;">
          <button nz-button nzType="primary" (click)="tableList()" style="margin-right:50px;">查询</button>
          <button nz-button nzType="default" (click)="popupHide()">取消</button>
        </div>
      </div>
    </div>

   <!-- 商品周期动作参数配置弹窗 -->
   <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'PRD_CYCLE_PARAM'">
    <div class="layui-inline layui-show-xs-block">
      <input nz-input nzSize="default" autocomplete="off" placeholder="动作id" [(ngModel)]="searchData['actionId']"
        style="width: 120px;" (keydown.enter)="tableList()">
    </div>
    <div class="layui-inline layui-show-xs-block">
      <input nz-input nzSize="default" autocomplete="off" placeholder="参数名称" [(ngModel)]="searchData['parameterName']"
        style="width: 120px;" (keydown.enter)="tableList()">
    </div>
    <div class="layui-inline layui-show-xs-block">
      <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
          class="layui-icon">&#xe615;</i></button>
    </div>
  </div>
   <!-- 领域组织参数 -->
   <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1_parmKey === 'UNIT_PARAMETER'">
    <div class="layui-inline layui-show-xs-block">
      <input nz-input nzSize="default" autocomplete="off" placeholder="参数Id" [(ngModel)]="searchData['parmId']"
        style="width: 150px;" (keydown.enter)="tableList()">
    </div>
    <div class="layui-inline layui-show-xs-block">
      <input nz-input nzSize="default" autocomplete="off" placeholder="描述" [(ngModel)]="searchData['description']"
        style="width: 150px;" (keydown.enter)="tableList()">
    </div>
    <div class="layui-inline layui-show-xs-block">
      <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
          class="layui-icon">&#xe615;</i></button>
    </div>
  </div>
   <!-- 切换组织 -->
      <div class="layui-tab-item layui-show layui-col-space5" style="text-align:center;" *ngIf="data1_parmKey === 'SWITCH_DOMAIN'">
        <div class="layui-inline layui-show-xs-block">
          <input nz-input nzSize="default" autocomplete="off" placeholder="组织代码" [(ngModel)]="searchData['unitCode']">
        </div>
        <div class="layui-inline layui-show-xs-block">
          <input nz-input nzSize="default" autocomplete="off" placeholder="组织名称" [(ngModel)]="searchData['unitName']">
        </div>
        <div class="layui-inline layui-show-xs-block">
          <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="tableList()"><i
              class="layui-icon">&#xe615;</i></button>
        </div>
      </div>
 
  </div>
  <table id="{{tableId}}" [attr.lay-filter]="tableId"></table>
</nz-modal>
<div id="{{tableId}}2" style="display: none;">
  <div class="layui-btn-container">
    <button class="layui-btn layui-btn-sm" lay-event="getCheckData">确定</button>
  </div>
</div>

<app-cp-popup (outer)="popupParent($event)" [module]="this" #popupChild1 *ngIf="isPopup"></app-cp-popup>


<!--  示例说明：

组织类型弹窗（带验证）：

  html：<app-cp-popup (outer)="popupParent($event)" [module]="this" #popupChild></app-cp-popup>
  <span>单据编号：</span> <input nz-input nzSize="default" autocomplete="off" [disabled]="data1_dis['code']" [(ngModel)]="data1['code']" 
(blur)="$event.target.value!=''?popupTable(1,'WH','UNIT_OPTION',$event.target.value):''" (keydown.enter)="$event.target.value!=''?popupTable(1,'WH','UNIT_OPTION','单据编号',$event.target.value):''">
<button nz-button nzType="default" class="ss_but2" (click)="popupTable(1,'WH','UNIT_OPTION','单据编号')" [disabled]="data1_dis['code']"><i class="layui-icon layui-icon-search"></i></button>

ts://动态弹窗公用
  /**
   * 
   * @param id 弹窗标识
   * @param type 弹窗类型
   * @param key 弹窗动态列标识
   * @param title 弹窗文字
   * @param value 验证数值（可选参数，传递正常参数为验证数据模式）
   */
  popupId;
  @ViewChild('popupChild') popup: any;
  popupTable(id, type, key, title, value?): void {
    this.popupId = id;
    var judge = value === undefined ? 0 : 1;
    var operation = this.utilService.isState[this.privIds] === 0 ? 'U' : this.utilService.isState[this.privIds] === 1 ? 'A' : 'S';
    var parm = '?switchUnitId=' + this.switchUnitId;
    if (this.popupId === 1) {
      parm = parm + '&unitType=' + type + '&judge=' + judge + '&privId=' + this.privIds + '&operation=' + operation
    }
    if (value) {
      this.popup.tableShow(key, parm,title, value);
    } else {
      this.popup.tableShow(key, parm,title);
    }
  }

  popupParent(e) {
    if (this.popupId === 1) {
      this.data1["venderId"] = e.unitId;
      this.data1["venderCode"] = e.unitCode;
      this.data1["venderName"] = e.unitName;
    }
  }


  自定义报表（不带参数不验证）：
   <input nz-input nzSize="default" autocomplete="off" [disabled]="isCourse0" [(ngModel)]="data1['crpName']">
  <button nz-button nzType="default" class="ss_but2" (click)="popupTable(1,'','SYS_CRP','自定义弹窗配置')"
    [disabled]="data1_dis['crpName']"><i class="layui-icon layui-icon-search"></i></button>

  popupTable(id, type, key, title, value?): void {
    this.popupId = id;
    var parm = '?switchUnitId=' + this.switchUnitId;
    this.popup.tableShow(key, parm,title);
  }

  popupParent(e) {
    if (this.popupId === 1) {
      this.data1["crpId"] = e.crpId;
      this.data1["crpName"] = e.crpName;
    }
  }


-->